package com.bot.backend.controller.user.snake;

import com.bot.backend.service.user.snake.UpdateSnakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UpdateSnakeController {
    @Autowired
    private UpdateSnakeService updateSnakeService;

    @PostMapping("/user/snake/update")
    public Map<String, String> updateSnake(@RequestParam Map<String, String> data) {
        return updateSnakeService.updateSnake(data);
    }
}
